package com.zha.boss.mvc.models.resp;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Author: zha
 * @CreateTime: 2024年09月11日 17:47
 */

public class PageInfo {
    private long current;
    private long pages;

    public PageInfo() {
    }

    public PageInfo(long current, long pages) {
        this.current = current;
        if (pages < 1) {
            pages = 1;
        }
        this.pages = pages;
    }

    public long getCurrent() {
        return current;
    }

    public void setCurrent(long current) {
        this.current = current;
    }

    public long getPages() {
        return pages;
    }

    public void setPages(long pages) {
        if (pages < 1) {
            pages = 1;
        }
        this.pages = pages;
    }
}
